<{include file="tpl/header.html"}>
<h2 class="ytadmin-h2">申请用户列表</h2>
<div>
	过滤：
	<a href="<{spUrl c=check a=index state=0}>" class="btn btn-info" >未处理</a>
	<a href="<{spUrl c=check a=index state=1}>" class="btn btn-info" >已同意</a>
	<a href="<{spUrl c=check a=index state=2}>" class="btn btn-info" >已拒绝</a>
	<a href="<{spUrl c=check a=out}>" class="btn btn-info pull-right" >EXCEL导出已同意用户</a>
</div>
<hr />
<table class="table table-striped">
	<tr>
		<td>操作</td>
		<td>姓名</td>
		<td>电话</td>
		<td>邮箱</td>
		<td>单位</td>
		<td>研究领域</td>
		<td>申请时间</td>
		<td>状态</td>
	</tr>
	<{foreach item=member_item from=$member_result}>
		<tr>
			<td><a href="<{spUrl c=check a=edit member_id=$member_item['id']}>">修改</a></td>
			<td><{$member_item['name']}></td>
			<td><{$member_item['phone']}></td>
			<td><{$member_item['email']}></td>
			<td><{$member_item['unit']}></td>
			<td><{$member_item['intro']}></td>
			<td><{$member_item['add_time']}></td>
			<td>
				<form class="form-inline" action="<{spUrl c=check a=index member_id=$member_item['id']}>" method="POST">
					<{if $member_item['state'] == 0}>
						<font color="red">未处理</font>
						<input type="submit" class="btn btn-info" name="check_agree" value="同意"></input>
						<input type="submit" class="btn btn-sm" name="check_disagree" value="拒绝"></input>
					<{/if}>
					<{if $member_item['state'] == 1}>
						<font color="green">已同意</font>
						<input type="submit" class="btn btn-sm" name="check_disagree" value="拒绝"></input>
					<{/if}>
					<{if $member_item['state'] == 2}>
						<font color="grey">已拒绝</font>
						<input type="submit" class="btn btn-info" name="check_agree" value="同意"></input>
					<{/if}>
				</form>
			</td>
		</tr>

	<{/foreach}>
</table>

<{include file="tpl/pagination.html"}>

<{include file="tpl/footer.html"}>